how to swap hexadecimal number in c